package com.cat.springbootdemoidea.service.impl;

import com.cat.springbootdemoidea.entity.Product;
import com.cat.springbootdemoidea.mapper.ProductMapper;
import com.cat.springbootdemoidea.service.IProductService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author zss
 * @since 2020-09-16
 */
@Service
public class ProductServiceImpl extends ServiceImpl<ProductMapper, Product> implements IProductService {
    @Autowired
    private ProductMapper productMapper;

    @Override
    public Product getProductByMybatis(String id) {
        Product product = productMapper.getProductByMybatis(id);

        return product;
    }
}
